﻿@if (MobileWebsiteGenerator.MvcApplication.showMessage == true)
{

    <script type="text/javascript">
        $(document).ready(function () {// When the Dom is ready 
            $('.successbox').hide(); //Hide the div 

            $(".successbox").fadeIn(1000);
            setInterval(function () { $(".successbox").hide(1000); }, 3000);
            $("#closeMsg").click(function () {
                $(".successbox").hide("fast");
            });
        });
    </script>

    <style type='text/css'>
        #outer
        {
            position: absolute;
            top: 20%;
            left: 40%;
            width: 100%;
            height: 1px;
            overflow: visible;
        }
        
        
        .successbox, .warningbox, .errormsgbox
        {
            font-weight: bold;
            padding: 0px;           
            position: absolute;
            color:Black;
            z-index: 1000;
           opacity:0.7;
            text-align: center;
           border:5px solid #181818;
            position: absolute;
           
        }
        .successbox
        {
            color:#FFFFFF;
         background-color: rgba(255, 0, 0, 1);
            margin: 0px;
            padding: 1px;
            font-family:Segoe UI;
             border:5px solid #olive;
             font-size:23px;
              font-weight:bold;
             width:400px;
             height:70px;
             text-align:center;
           
        }
        
        .errormsgbox
        {
            color: #000000;
            background-color: #FDD5CE;
        }
    </style>
    <div id="outer">
        <div class="successbox">
            <img src="@Url.Content("~/Images/delete.png")" id="closeMsg" alt="Close" title="Close"  style="float:right;margin:10px;" />
           
                <img src="@Url.Content("~/Images/thumbs_up.png")" style="height:25px;" />
                @MobileWebsiteGenerator.MvcApplication.messageTxt
           
        </div>
    </div>
    MobileWebsiteGenerator.MvcApplication.showMessage = false;
}